﻿@{
    Layout = "../Shared/_ClassifierLayout.cshtml";
}
@using Cnm.Models.ViewModels
@using Kendo.Mvc.UI
@*@{
    var totalCount = string.Format("Tất cả ({0:0,0.0})", ViewBag.TotalCount ?? 0);
    var personalCount = string.Format("Cá nhân ({0:0,0.0})", ViewBag.PersonalCount ?? 0);
    var companyCount = string.Format("Công ty ({0:0,0.0})", ViewBag.CompanyCount ?? 0);
}*@
<div class="classifier-ad-list">

    @(Html.Kendo().TabStrip()
          .Name("tabstrip")
          .Items(tabstrip =>
          {
              tabstrip.Add().Text("Tất cả")
                  .Selected(true)
                  .Content(@<text>
                                @Html.Partial("../Partials/_ClassifierGrid", new PostConditionViewModel())
                            </text>);

              tabstrip.Add().Text("Cá nhân")
                  .Content(@<text>
                                @Html.Partial("../Partials/_ClassifierGrid", new PostConditionViewModel { TitularId = (int)TitularDesc.Personal })
                            </text>);
              tabstrip.Add().Text("Công ty")
                  .Content(@<text>
                                @Html.Partial("../Partials/_ClassifierGrid", new PostConditionViewModel { TitularId = (int)TitularDesc.Company })
                            </text>);
          })
          )
</div>